package com.crr.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.plugin.Interceptor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
@ApiModel("用户地址信息表")
public class UserAddr {
    @ApiModelProperty("地址id")
    @TableId(value = "addr_id", type = IdType.AUTO)
    Integer addr_id;
    @ApiModelProperty("用户id")
    Integer user_id;
    @ApiModelProperty("手机")
    String mobile;
    @ApiModelProperty("是否默认地址 1是")
    Integer is_default;
    @ApiModelProperty("收货人")
    String consignee;
    @ApiModelProperty("省ID")
    Integer province_id;
    @ApiModelProperty("省")
    String province;
    @ApiModelProperty("城市ID")
    Integer city_id;
    @ApiModelProperty("城市")
    String city;
    @ApiModelProperty("区ID")
    Integer area_id;
    @ApiModelProperty("区")
    String area;
    @ApiModelProperty("邮编")
    String post_code;
    @ApiModelProperty("具体地址")
    String addr;
    @ApiModelProperty("经度")
    Double lng;
    @ApiModelProperty("纬度")
    Double lat;

}
